const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device, // 设备类型
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar, // 头像
  introduction: state => state.user.introduction,
  userInfo: state => state.user.userInfo, // 个人信息
  messages: state => state.user.messages, // 消息总数
  roles: state => state.user.roles, // 角色
  rolesList: state => state.user.rolesList,
  resourceTree: state => state.user.resourceTree,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes,
  topbarRouters:state => state.permission.topbarRouters,
  defaultRoutes:state => state.permission.defaultRoutes,
  sidebarRouters:state => state.permission.sidebarRouters,
  orgItem: state => state.permission.orgItem, // 组织
  orgList: state => state.user.orgList, // 组织tree
  orgRight: state => state.permission.orgRight, // 组织权限
  statusList: () => ([
    { label: "待审批", value: 0 },
    { label: "已审批", value: 1 },
    { label: "已驳回", value: 2 },
    { label: "待发起", value: 3 },
  ])
}
export default getters
